package bb.lanxing.fragment.base;

import android.content.Context;

public class BaseTabFragment extends BaseViewFragment {
    protected OnFragmentInteractionListener mListener;
    protected int tabIndex;

    public interface OnFragmentInteractionListener {
        void onFragmentNewMessageRefresh(int i, int i2, boolean z);
    }

    public BaseTabFragment() {
        tabIndex = -1;
    }

    public BaseTabFragment(int i) {
        super(i);
        tabIndex = -1;
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        if (context instanceof OnFragmentInteractionListener) {
            mListener = (OnFragmentInteractionListener) context;
            return;
        }
        throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener");
    }

    @Override
    public void onDetach() {
        super.onDetach();
        mListener = null;
    }
}